<%--
  Created by IntelliJ IDEA.
  User: 22954
  Date: 2024/8/31
  Time: 14:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>计算结果</title>
</head>
<body>
<h1>计算结果</h1>
<%
    String text = session.getAttribute("num1") + " " + session.getAttribute("operator") + " " + session.getAttribute("num2") + " = " + session.getAttribute("ret");
    Object result = request.getAttribute("result");
%>
<%--<h3><%=text%></h3>--%>
<h3><%=result%></h3>
<a href="<%=request.getContextPath()%>/exercise/cal.jsp">返回计算器</a>
</body>
</html>
